package com.itlaobing.test2;

import java.io.FileInputStream;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.Reader;

public class ReaderTest {

	public static void main(String[] args) throws IOException {
		String file="poem.txt";
//		InputStream inputStream=new FileInputStream(file);
		Reader reader=new FileReader(file);
		int i;
		while((i=reader.read())!=-1) {
			System.out.println((char)i);
		}
		reader.close();

	}

}
